package org.example.maven.museumuser.service.impl;


import org.example.maven.museumuser.domain.entity.ActionTicket;

import org.example.maven.museumuser.mapper.ActionTicketMapper;
import org.example.maven.museumuser.service.IActionTicketService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zafkiel
 * @since 2025-06-21
 */
@Service
public class ActionTicketServiceImpl extends ServiceImpl<ActionTicketMapper, ActionTicket> implements IActionTicketService {

    @Override
    public boolean deductActionTicket(Integer id) {
        return baseMapper.updateActionTicket(id) > 0;
    }
}
